<%@ page import="com.plan.ConstructionReportDetail" %>

<g:hiddenField name="parent.id" value="${constructionReportDetailInstance?.parent.id}" />

<div class="splitcontentleft">
	<div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'quantitiesName', 'error')} required">
		<label for="quantitiesName">
			<g:message code="constructionReportDetail.quantitiesName.label" default="Quantities Name" />
			<span class="required-indicator">*</span>
		</label>
		<g:select id="quantitiesName" name="quantitiesName" from="${com.plan.QuantitiesInfo.findAll()}" 
			optionKey="name"  value="${constructionReportDetailInstance?.quantitiesName}" class="many-to-one" style="width:170px;"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'subProject', 'error')} ">
		<label for="subProject">
			<g:message code="constructionReportDetail.subProject.label" default="Sub Project" />
			
		</label>
		<g:textField name="subProject" maxlength="50" value="${constructionReportDetailInstance?.subProject}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'elevation', 'error')} ">
		<label for="elevation">
			<g:message code="constructionReportDetail.elevation.label" default="Elevation" />
			
		</label>
		<g:textField name="elevation" maxlength="50" value="${constructionReportDetailInstance?.elevation}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'system', 'error')} ">
		<label for="system">
			<g:message code="constructionReportDetail.system.label" default="System" />
			
		</label>
		<g:select id="system" name="system" from="${com.plan.Params.findAllByParmType('system')}" 
			optionKey="name" value="${constructionReportDetailInstance?.system}" class="many-to-one" style="width:130px;"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'room', 'error')} ">
		<label for="room">
			<g:message code="constructionReportDetail.room.label" default="Room" />
			
		</label>
		<g:textField name="room" maxlength="50" value="${constructionReportDetailInstance?.room}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'drawing', 'error')} ">
		<label for="drawing">
			<g:message code="constructionReportDetail.drawing.label" default="Drawing" />
			
		</label>
		<g:textField name="drawing" maxlength="100" value="${constructionReportDetailInstance?.drawing}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'spec', 'error')} ">
		<label for="spec">
			<g:message code="constructionReportDetail.spec.label" default="Spec" />
			
		</label>
		<g:textField name="spec" maxlength="100" value="${constructionReportDetailInstance?.spec}"/>
	</div>
    <div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'installMethod', 'error')} ">
        <label for="installMethod">
            <g:message code="constructionReportDetail.installMethod.label" default="Install Method" />
        </label>
        <g:textField name="installMethod" maxlength="100" value="${constructionReportDetailInstance?.installMethod}"/>
    </div>
</div>

<div class="splitcontentright">
	<div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'material', 'error')} ">
		<label for="material">
			<g:message code="constructionReportDetail.material.label" default="Material" />
			
		</label>
		<g:textField name="material" maxlength="100" value="${constructionReportDetailInstance?.material}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'unit', 'error')} ">
		<label for="unit">
			<g:message code="constructionReportDetail.unit.label" default="Unit" />
			
		</label>
		<g:select id="unit" name="unit" from="${com.plan.Params.findAllByParmType('unit')}" 
			optionKey="name"  value="${constructionReportDetailInstance?.unit}" class="many-to-one" style="width:130px;"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'sum', 'error')} ">
		<label for="sum">
			<g:message code="constructionReportDetail.sum.label" default="Sum" />
			
		</label>
		<g:field type="number" name="sum" value="${fieldValue(bean: constructionReportDetailInstance, field: 'sum')}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'team', 'error')} ">
		<label for="team">
			<g:message code="constructionReportDetail.team.label" default="Team" />
			
		</label>
		<g:textField name="team" maxlength="50" value="${constructionReportDetailInstance?.team}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: constructionReportDetailInstance, field: 'remark', 'error')} ">
		<label for="remark">
			<g:message code="constructionReportDetail.remark.label" default="Remark" />
			
		</label>
		<g:textArea name="remark" cols="40" rows="5" maxlength="500" value="${constructionReportDetailInstance?.remark}"/>
	</div>
</div>
